package com.lpf.designpattern.decorator;

// 具体装饰角色
public class ConcreteDecoratorB extends Decorator {

    public ConcreteDecoratorB(Component component) {
        super(component);
    }

    @Override
    public void Operation() {
        super.Operation();
        this.Function();
    }

    public void Function() {
        System.out.println("method B");
    }
}
